﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000FE3 RID: 4067
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class RogueTournConfirmSettleCsReq : IMessage<RogueTournConfirmSettleCsReq>, IMessage, IEquatable<RogueTournConfirmSettleCsReq>, IDeepCloneable<RogueTournConfirmSettleCsReq>, IBufferMessage
	{
		// Token: 0x1700336B RID: 13163
		// (get) Token: 0x0600B5D3 RID: 46547 RVA: 0x001EA85D File Offset: 0x001E8A5D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<RogueTournConfirmSettleCsReq> Parser
		{
			get
			{
				return RogueTournConfirmSettleCsReq._parser;
			}
		}

		// Token: 0x1700336C RID: 13164
		// (get) Token: 0x0600B5D4 RID: 46548 RVA: 0x001EA864 File Offset: 0x001E8A64
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return RogueTournConfirmSettleCsReqReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x1700336D RID: 13165
		// (get) Token: 0x0600B5D5 RID: 46549 RVA: 0x001EA876 File Offset: 0x001E8A76
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return RogueTournConfirmSettleCsReq.Descriptor;
			}
		}

		// Token: 0x0600B5D6 RID: 46550 RVA: 0x001EA87D File Offset: 0x001E8A7D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueTournConfirmSettleCsReq()
		{
		}

		// Token: 0x0600B5D7 RID: 46551 RVA: 0x001EA890 File Offset: 0x001E8A90
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueTournConfirmSettleCsReq(RogueTournConfirmSettleCsReq other) : this()
		{
			this.areaId_ = other.areaId_;
			this.maxTimes_ = other.maxTimes_;
			this.name_ = other.name_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600B5D8 RID: 46552 RVA: 0x001EA8CD File Offset: 0x001E8ACD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueTournConfirmSettleCsReq Clone()
		{
			return new RogueTournConfirmSettleCsReq(this);
		}

		// Token: 0x1700336E RID: 13166
		// (get) Token: 0x0600B5D9 RID: 46553 RVA: 0x001EA8D5 File Offset: 0x001E8AD5
		// (set) Token: 0x0600B5DA RID: 46554 RVA: 0x001EA8DD File Offset: 0x001E8ADD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint AreaId
		{
			get
			{
				return this.areaId_;
			}
			set
			{
				this.areaId_ = value;
			}
		}

		// Token: 0x1700336F RID: 13167
		// (get) Token: 0x0600B5DB RID: 46555 RVA: 0x001EA8E6 File Offset: 0x001E8AE6
		// (set) Token: 0x0600B5DC RID: 46556 RVA: 0x001EA8EE File Offset: 0x001E8AEE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint MaxTimes
		{
			get
			{
				return this.maxTimes_;
			}
			set
			{
				this.maxTimes_ = value;
			}
		}

		// Token: 0x17003370 RID: 13168
		// (get) Token: 0x0600B5DD RID: 46557 RVA: 0x001EA8F7 File Offset: 0x001E8AF7
		// (set) Token: 0x0600B5DE RID: 46558 RVA: 0x001EA8FF File Offset: 0x001E8AFF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public string Name
		{
			get
			{
				return this.name_;
			}
			set
			{
				this.name_ = ProtoPreconditions.CheckNotNull<string>(value, "value");
			}
		}

		// Token: 0x0600B5DF RID: 46559 RVA: 0x001EA912 File Offset: 0x001E8B12
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as RogueTournConfirmSettleCsReq);
		}

		// Token: 0x0600B5E0 RID: 46560 RVA: 0x001EA920 File Offset: 0x001E8B20
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(RogueTournConfirmSettleCsReq other)
		{
			return other != null && (other == this || (this.AreaId == other.AreaId && this.MaxTimes == other.MaxTimes && !(this.Name != other.Name) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600B5E1 RID: 46561 RVA: 0x001EA980 File Offset: 0x001E8B80
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.AreaId != 0U)
			{
				num ^= this.AreaId.GetHashCode();
			}
			if (this.MaxTimes != 0U)
			{
				num ^= this.MaxTimes.GetHashCode();
			}
			if (this.Name.Length != 0)
			{
				num ^= this.Name.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600B5E2 RID: 46562 RVA: 0x001EA9F3 File Offset: 0x001E8BF3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600B5E3 RID: 46563 RVA: 0x001EA9FB File Offset: 0x001E8BFB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600B5E4 RID: 46564 RVA: 0x001EAA04 File Offset: 0x001E8C04
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.AreaId != 0U)
			{
				output.WriteRawTag(8);
				output.WriteUInt32(this.AreaId);
			}
			if (this.Name.Length != 0)
			{
				output.WriteRawTag(34);
				output.WriteString(this.Name);
			}
			if (this.MaxTimes != 0U)
			{
				output.WriteRawTag(72);
				output.WriteUInt32(this.MaxTimes);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600B5E5 RID: 46565 RVA: 0x001EAA80 File Offset: 0x001E8C80
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.AreaId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.AreaId);
			}
			if (this.MaxTimes != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.MaxTimes);
			}
			if (this.Name.Length != 0)
			{
				num += 1 + CodedOutputStream.ComputeStringSize(this.Name);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600B5E6 RID: 46566 RVA: 0x001EAAF4 File Offset: 0x001E8CF4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(RogueTournConfirmSettleCsReq other)
		{
			if (other == null)
			{
				return;
			}
			if (other.AreaId != 0U)
			{
				this.AreaId = other.AreaId;
			}
			if (other.MaxTimes != 0U)
			{
				this.MaxTimes = other.MaxTimes;
			}
			if (other.Name.Length != 0)
			{
				this.Name = other.Name;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600B5E7 RID: 46567 RVA: 0x001EAB5D File Offset: 0x001E8D5D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600B5E8 RID: 46568 RVA: 0x001EAB68 File Offset: 0x001E8D68
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 8U)
				{
					if (num != 34U)
					{
						if (num != 72U)
						{
							this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
						}
						else
						{
							this.MaxTimes = input.ReadUInt32();
						}
					}
					else
					{
						this.Name = input.ReadString();
					}
				}
				else
				{
					this.AreaId = input.ReadUInt32();
				}
			}
		}

		// Token: 0x0400497C RID: 18812
		private static readonly MessageParser<RogueTournConfirmSettleCsReq> _parser = new MessageParser<RogueTournConfirmSettleCsReq>(() => new RogueTournConfirmSettleCsReq());

		// Token: 0x0400497D RID: 18813
		private UnknownFieldSet _unknownFields;

		// Token: 0x0400497E RID: 18814
		public const int AreaIdFieldNumber = 1;

		// Token: 0x0400497F RID: 18815
		private uint areaId_;

		// Token: 0x04004980 RID: 18816
		public const int MaxTimesFieldNumber = 9;

		// Token: 0x04004981 RID: 18817
		private uint maxTimes_;

		// Token: 0x04004982 RID: 18818
		public const int NameFieldNumber = 4;

		// Token: 0x04004983 RID: 18819
		private string name_ = "";
	}
}
